package com.hgkj.cloud.base.scheme.table;

/**
 * 量表抽象类
 */
public class AbstractTable {
    private String sSize = "13";

    // 1中文或2英文
    public int g_CorE = 1;

    public Boolean g_inblFactor = true; // 是否显示“因子得分”

    public int tWidth = 90;

    public int oWidth = 45; // 60


    // 基础格式，位置
    public String subTitle(int vAlign, int vWidth) {
        String strR = "";
        switch (vAlign) {
            case 0:
                strR += " align='left'";
                break;
            case 1:
                strR += " align='center'";
                break;
            case 2:
                strR += " align='right'";
                break;
        }

        if (vWidth > 0) {
            strR += " style='font-size:" + sSize + "px; color:Black; Font-family:微软雅黑; font-weight:bold; width:"
                    + vWidth + "px'";
        } else {
            strR += " style='font-size:" + sSize + "px; color:Black; Font-family:微软雅黑; font-weight:bold;'";
        }

        return strR;
    }

    // 基础格式，内容文字
    public String subValue(int vAlign, int vWidth) {
        String strR = "";
        switch (vAlign) {
            case 0:
                strR += " align='left'";
                break;
            case 1:
                strR += " align='center'";
                break;
            case 2:
                strR += " align='right'";
                break;
        }

        if (vWidth > 0) {
            strR += " style='font-size:" + sSize + "px; color:#333000; width:" + vWidth + "px'";
        } else {
            strR += " style='font-size:" + sSize + "px;color:#333000'";
        }

        return strR;
    }


}
